package com.example.common.recycler.base;

import android.util.SparseArray;

import androidx.annotation.NonNull;

/**
 * BindView存储器
 */
public class BindViewStore<T> {
    public SparseArray<T> bindViewMap = new SparseArray<>();

    public T getBindView(int type) {
        return bindViewMap.get(type);
    }

    public void putBindView(@NonNull int type, @NonNull T bindView) {
        bindViewMap.put(type, bindView);
    }

    public void clear() {
        bindViewMap.clear();
    }
}